<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Coordina</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Coordina consultores">
    <meta name="author" content="Giancarlo Corzo">

    <%= yield :meta %>

    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <link href="/stylesheets/bootstrap.css" rel="stylesheet">
    <link href="/stylesheets/bootstrap-responsive.min.css" rel="stylesheet">    
    <link rel="stylesheet" href="/stylesheets/font-awesome.css">
    
    <%= yield :stylesheets %>
    
    <link href="/stylesheets/style.css" rel="stylesheet">        
        
    <%= csrf_meta_tag %>
  </head>
  <body class="app">
    <!-- Navbar
      ================================================== -->
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container" style="overflow: hidden;">
          <div class="pull-left" id="main-menu">            
             <div class="texto">
               Bienvenido <%= @current_account.name %> (<a href="<%= url_for :controller => :accounts, :action => :logout %>">Salir</a>)
             </div>            
          </div>
          <div class="pull-right" style="padding-top:10px;position: relative;">
            <a class="brand" href="/calendar"></a>
            <div class="red-line"></div>
          </div>          
        </div>
      </div>
    </div>

    <div class="container">

      <!-- Masthead
      ================================================== -->
      <header class="jumbotron subhead">
        <div class="subnav subnav-fixed">
          <ul class="nav nav-pills" style="<%= @current_account.admin ? 'font-size: 13px;' : '' %>">
            <% @sections.each do |section| %>
                <li class="<%= @active_section.id == section.id ? 'active' : '' %>">
                    <a href="<%= url_for :controller => section.controller, :action => section.action %>">
                        <%= @current_account.admin ? section.short_name : section.name %>
                    </a>
                </li>
            <% end %>
          </ul>
        </div>
      </header>
      <%= yield %>
    </div><!-- /container -->
    <%= yield :modal %>
    <%= yield :templates %>
    <script type="text/javascript">
      App = {};
      App.contextPath = window.location.pathname.substring(0, window.location.pathname.indexOf('/', 1));
    </script>        
    <script src="/javascripts/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="/javascripts/bootstrap.min.js"></script>
    <script src="/javascripts/rails.js" type="text/javascript"></script>
    <script src="/javascripts/handlebars.js" type="text/javascript"></script>
    <script src="/javascripts/app/core/handlebars.extensions.js" type="text/javascript"></script>    
    <script src="/javascripts/app/core/opal.js"></script>
    <script src="/javascripts/html5placeholder.jquery.js"></script>
    <%= yield :javascript %>
    <script>
      $(document).ready(function () {      
        $('input[placeholder]').placeholder();  
      });      
    </script>    
  </body>
</html>
